<?php
defined('BASEPATH') OR exit('No direct script access allowed');
require "Curl.php";
class Demo extends CI_Controller {
    public function index() {
    }

    public function items(){
//        $this->load->library('curl');
        $curl = new Curl();
        $re = $curl->get("http://www.daibangzhu.cn/?t=json");
        return $this->output
            ->set_content_type('application/json')
            ->set_output(
                $re->response
            );
    }
}